//<template>
  <div>home
<van-tabs v-model="active">
  <van-tab title="标签 1">内容 1</van-tab>
  <van-tab title="标签 2">内容 2</van-tab>
  <van-tab title="标签 3">内容 3</van-tab>
  <van-tab title="标签 4">内容 4</van-tab>
</van-tabs>
        <div v-for="(item, index) in list" :key="index">
 <!-- {{item.img}} -->
  <img :src="item.img" alt="">
<p> {{item.title}}</p>
<p> {{item.id}}</p>

        </div>
 
 

  </div>
</template>

<script>
import axios from 'axios'
export default {
data() {
    return {
      active: 2,
      list:[],
      llist:[],
    };
  },
  mounted() {
    axios.get('/list', {
      params: {}
    }).then((ret) => {
      console.log(ret.data)
     this.list=(ret.data)

    })
  },
  computed: {
    on(){
        console.log(123);
    }
  },
}
</script>

<style>

</style>